/*
 * 
 * v1.2 by tonydon
 */
package cn.txdnet.txweb.mail;

import java.util.concurrent.Callable;

/**
 *
 * @author txdnet
 */
public class EmailSenderTask  implements Callable{

     public EmailSenderTask(Sender sender)
    {
        this.sender = sender;
    }

    private Sender sender;

    @Override
    public Object call() throws Exception {
        return sender.dispatchMessages();
    }
}